package com.huafv.flyauth.web.admin.service.impl;

import com.huafv.flyauth.web.admin.service.IAuthentication;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;

@Service
public class IAuthenticationImpl implements IAuthentication {
    @Override
    public Authentication authentication() {
        return SecurityContextHolder.getContext().getAuthentication();
    }
}
